#!/usr/bin/python3.4
# -*- coding=utf-8 -*-

import sys,socket
def dns_resolver(dns_name):
    result = socket.getaddrinfo(dns_name, None)
	print(result[0][4][0])

if __name__ == '__main__':
	dns_resolver(sys.argv[1])